/***********************************************************************************
Copy right:	    Coffee Tech.
Author:         jiaoyue
Date:           2022-04-08
Description:    mqtt通信封装
***********************************************************************************/

#ifndef MQTT_HANDLER_H
#define MQTT_HANDLER_H

#include "MQTTClient.h"
#include "public.h"

int mqtt_init();
int mqtt_subscribe(const char *topic);
int mqtt_publish(const char *topic, char *msg);

#define SUB_TOPIC "SoftWareToScratch"
#define PUB_TOPIC "ScratchToSoftWare"


#endif  // MQTT_HANDLER_H
